package 用两个栈实现队列;

import java.util.LinkedList;

public class Solution {
    public static void main(String[] args) {
        LinkedList<Integer> a = new LinkedList<>();
        for (int i = 0; i < 5; i++) {
            a.addLast(i);
        }

        System.out.println(a.removeFirst());
        System.out.println(a.removeLast());
    }
}
